package com.example.utils;

import java.io.File;

/**
 *
 */
public class FileUtil {
    public static boolean delete(String filePath){
        if (filePath == null || filePath == "") {
            return false;
        }
        boolean res = false;
        File fileObj = new File(filePath);
        if(!fileObj.exists()) {
            return false;
        }
        if (fileObj.delete()) {
            res = true;
        }
        return res;
    }
}
